import { Code, Digdit, Entity, Jsonb, PrimaryKey, PrimaryUuid, Time, Uuid } from "@sker/core";

@Entity({
    name: 'gym_table_log',
})
export class GymTableLog {
    @PrimaryUuid()
    id: string;

    @Code({
        unique: true
    })
    key: string;

    @Digdit()
    week: number;

    @Uuid({ nullable: true })
    time_id: string;

    @Time({ nullable: true })
    start: Date;

    @Time({ nullable: true })
    end: Date;

    @Code({ comment: '私教 personal、团课 group、训练营 activity' })
    type: string;

    @Uuid({ nullable: true })
    teacher_id: string;

    @Uuid({ nullable: true })
    place_id: string;

    @Uuid({ nullable: true })
    course_id: string;

    @Uuid({ nullable: true })
    table_id: string;

    @Jsonb({ nullable: true, default: {} })
    setting: any;
}
